/******************************************************************************
** 
** Fahrenheit to Celcius conversion table using "for" construction 
** and constants.
** 
** File name:	fahr_to_celc_for.c
** Compilation:	cc fahr_to_celc_for.c -o fahr_to_celc_for
** Execution:	./fahr_to_celc_for
** 
** Description:
** Prints the table of Fahrenheit and corresponding Celcius degrees.
** 
******************************************************************************/
#include <stdio.h>

#define LOWER   0
#define UPPER   300
#define STEP    20

main()
{
    int fahr;
    
    for (fahr=UPPER; fahr >=LOWER; fahr -=STEP) {
        printf("%3d %6.2f\n", fahr, (5.0/9.0)*(fahr-32.0));
    }
}

